package com.woniu.userassembly.service;

import com.woniu.ly.model.model.*;

import java.util.List;

public interface UserService {
    User login(String userName);
    void register(String userName,String userPassword,String userTel);
    String quanxian(String userName);

    List<Product> selectProduct(String keyWord);
    List<com.woniu.userassembly.model.UserOrder> selectOrder(int pageIndex, int pageNum,int userId);

    int orderCount(int userId);

    int makeOrder(com.woniu.userassembly.model.UserOrder userOrder);
    void addTraveler(Traveler traveler);
    void makeComplaints(Complaints complaints);
    void makeComment(Comment comment);
    void commentImg(CommentImg commentImg);

    void cancelOrder(int orderId);

    void makeOrderDetail(UserOrderDetail userOrderDetail);

    void cancelOrderDetail(int orderId);

    double selectOrderPrice(int orderId);

    void refundOrder(int orderId);
    List<Integer> selectOrderIdd();

    int travelerCount(int userId);

    List<Traveler> selectTraveler(int userId, int i, int pageNum);

    void pay(int orderId);

    void refundOrderPrice(com.woniu.userassembly.model.UserAccount userAccount);


    int selectOrderUserId(int orderId);

    void userAccount(com.woniu.userassembly.model.UserAccount userAccount);

    int registerId();

    void insertUserRole(int userId);

    double selectSeckillTourPrice(int seckillTourId);

    com.woniu.ly.model.model.UserOrder findUserOrderById(int orderId);

    void refundTraveler(int traId);
    Tour selectTourById(int tourId);

    void updateTourNowNum(Tour tour);
//    void makeOrder(com.woniu.userassembly.model.UserOrder userOrder);

    UserOrder selectOrderById(int orderId);

    List<Integer> selectTravelerIdByUserId(int userId);

    List<Tour> selectTourByTime(String timestamp);


    SeckillTour selectSeckillTourById(int tourId);

    void updateSeckillTourNowNum(SeckillTour seckillTour);

    void updateUserOrder(UserOrder userOrder);

    void changeOrderStatus(int orderId,String status);

    void addCard(Card card1);

    void platformAccount(double price,int id);

    void platformStatement(PlatfromStatement platfromStatement);

    double selectLastPlatformAccount();

    int findTraveler(int orderId);

    int travelNum(int tourId);

    List<String> selectTel();

    void insertCardId(int cardId, String travelerTel);

    Card selectCard(String cardNum);

    int updateCard(Card idCard);

    void update(int upCardId, int userId);
}
